home *** CD-ROM | disk | FTP | other *** search
- Path: news.uoknor.edu!news
- From: Don Cruickshank <don@rmg.uoknor.edu>
- Newsgroups: comp.lang.c
- Subject: BC++31 calling MS V5.1 Fortran DLL's
- Date: Mon, 08 Apr 1996 18:29:50 -0700
- Organization: University of Oklahoma
- Message-ID: <3169BD8E.5918@rmg.uoknor.edu>
- NNTP-Posting-Host: sigma1.pge.uoknor.edu
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- This is a follow-on to a question asked recently about calling Lahey
- Fortran from BC++4.0.
-
- (There hasn't been much response over in comp.lang.fortran; perhaps the
- question was too product-specific.)
-
- We're having all sorts of difficulties here trying to call Msoft V5.1
- DLL's from BC++31. I've searched through Msoft's Knowledge base and only
- found one reference to Borland and that was to say that Msoft does not
- support mixed-language programming with non-Msoft products (what a
- surprise).
-
- Msoft does include some mixed-language examples in the Fortran V5.1
- manual, but complicates matters (for us, anyway) by including C calls
- within the Fortran code. It also seems to be Win3.0 centric rather than
- Win3.1 (if that makes a great difference?).
-
- Borland is even less supportive. I've found nothing at Borland's site
- that even suggests that BC31 can call Msoft Fortran V5.1 DLL's.
-
- We've also had a look at Petzold's bible; unfortunately, the section of
- interest starts at page 935 and concerns calling C generated DLL's.
-
- With aid (or lack of) from the above, we have managed to create a DLL and
- a Windows EXE, but the program does not function correctly (how's that
- for a description!).
-
- A big part of the problem is that we're inexperienced with Windows
- programming to begin with, but I've got to think that some other folks
- have banged their heads on this problem before.
-
- What we really need is the simplest of examples which show how the
- linkage is established and some of the caveats in compiling/linking
- (i.e., DS != SS, import/export definitions, C vs. C++ compiles, etc.).
-
- Any pointers would be greatly appreciated.
-
- Don
- =-=-=-=-=-=-=-=-=-=-=-=-=-=
- Don Cruickshank
- University of Oklahoma | Internet: don@rmg.uoknor.edu
- Rock Mechanics Institute (RMI) | Tel.: 405-325-2900 (x126)
- Energy Center P119 | Fax.: 405-325-7511 (or 7477)
- Norman, OK 73019 | Office: EC-T105
-